<?php


namespace app\api\validate;


use think\Validate;

class SubmitOrderValidate extends Validate
{
    protected $rule = [
        'teacher_course_id' => 'require',
        'classdata' => 'require',
        'num' => 'require|number',
        'address_id' => 'require',
        'address' => 'require',
        'username' => 'require',
        'phone' => 'require',
        'pay_type' => 'require'
    ];

    protected $message = [
        'teacher_course_id.require' => '课程ID不能为空',
        'classdata.require' => '授课形式不能为空',
        'num.require' => '预约课次最少为1',
        'num.number' => '预约课次最少为1',
        'username.require' => '姓名不能为空',
        'phone.require' => '手机号不能为空',
        'address.require' => '地址不能为空',
        'address_id.require' => '地址ID不能为空',
        'pay_type.require' => '支付类型不能为空'
    ];
}